From: Paul Donald Date: Tue, 5 Nov 2024 18:31:33 +0000 (+0100) Subject: luci-mod-network: show 'Interface disabled' in status X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=1c61a669509c3780b0642aad07a771be8bea7e5e;p=project%2Fluci.git luci-mod-network: show 'Interface disabled' in status Signed-off-by: Fengyu Wu Signed-off-by: Paul Donald --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 6f9f2df941..a4c7384e90 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -88,6 +88,7 @@ function render_status(node, ifc, with_device) { ...addEntries(_('IPv4'), changecount ? [] : ifc.getIPAddrs()), ...addEntries(_('IPv6'), changecount ? [] : ifc.getIP6Addrs()), ...addEntries(_('IPv6-PD'), changecount ? null : ifc.getIP6Prefixes?.()), + _('Information'), with_device ? null : (ifc.get('disabled') != '1' ? null : _('Interface disabled')), _('Information'), with_device ? null : (ifc.get('auto') != '0' ? null : _('Not started on boot')), ...addEntries(_('Error'), ifc.getErrors()), null, changecount ? E('a', {